c# get all the column names from datagridview

107

c# get all the column names from datagridview -

for (var i = 0; i < DataGridView.ColumnCount; i++)
var name = DataGridView.Columns[i].HeaderText;

Comments

Submit
0 Comments